package uk.co.q3c.deplan.client.domain.dag;

import java.io.Serializable;

/**
 * @see DAGEdgeChange
 * @author David Sowerby 9 Jul 2010
 * 
 */
public class DAGVertexChange<T> implements SharedStructureChange, Serializable {
	private static final long serialVersionUID = 1L;

	private boolean add;
	private T key;
	private boolean applied;

	// @Id
	// private Long id;

	@SuppressWarnings("unused")
	private DAGVertexChange() {
		super();
	}

	/**
	 * @param add
	 * @param label
	 * @param key
	 */
	public DAGVertexChange(boolean add, T taskKey) {
		super();
		this.add = add;
		this.key = taskKey;
	}

	public boolean isAdd() {
		return add;
	}

	public void setAdd(boolean add) {
		this.add = add;
	}

	public T getKey() {
		return key;
	}

	public void setKey(T taskKey) {
		this.key = taskKey;
	}

	public boolean isApplied() {
		return applied;
	}

	public void setApplied(boolean applied) {
		this.applied = applied;
	}
}
